<?php

class Test extends Model
{
    public function getDienthoai()
    {
        $data = $this->Db->select('dienthoai','hsx_id=:id', array('id'=>'1'));
        return $data;
    }

    public static function reset()
    {
        self::$_database->run('UPDATE dienthoai SET dt_in_use = 1');
        self::$_database->run('UPDATE hangsanxuat SET hsx_in_use = 1');
    }
}